<include file="Public/newset-header" title="我的工单" />
<link rel="stylesheet" href="__STATIC__/css/style.css" />
<link rel="stylesheet" href="__STATIC__/css/my.css" />
<style>
    .cursor{cursor: pointer;}
    a:hover{color: #268df7;text-decoration:none!important;}
</style>
<div class="container content recent" style="min-height:610px;">  
<div class="row">
    <div class="col-md-12 " >
        <div class="row">
           
                <a class="btn-u" href="{:U('member/newticket')}"><i class="fa fa-cloud-upload"></i> 提交工单</a> 
         
            </div>
            <div class="margin-bottom-20"></div>
        </div> 
    </div>
    <div class="tab-v1 margin-bottom-20" style="display:none;">
        <ul class="nav nav-tabs">
            <li class="active"><a  href="javascript:void(0)">我的应用</a></li>
            <!--<li class=""><a href="mygroup.html">我的分组</a></li>-->
        </ul>                
    </div>
    <div class="my-header margin-bottom-20" style="border-bottom: 2px solid #eee;">
        <div class="my-navbar my-navbar-default" role="navigation">
            <div class="container" style="padding-left:0px">
                <div class="my-collapse my-navbar-collapse my-navbar-responsive-collapse">
                    <ul class="my-nav my-navbar-nav" style="float:left">
                    <li class="active"><a>我的工单</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
            <div class="col-md-12">
           <div class="margin-bottom-20">
            <div class="panel pgy-panel-sea margin-bottom-40" id="tabbb">
                <div class="panel-heading pgy-panel-heading">
                  <h3 class="panel-title" style="color:#fff;min-height:34px;height:auto;">
                  <div class="row">
                  <div class="col-md-6 col-xs-12 col-sm-6 " style="margin-top:3px">
                    <i class="fa fa-angle-double-right"></i>工单列表 &nbsp;
                   </div>
                    </div>
                   </h3>
                </div>
                <div class="tabbb_box">
				<table class="table table-striped table-hover text-center myapps my_history pgy-table">
                    <thead>
                        <tr>
                            <th class="text-center" width="15%">工单编号</th>
                            <th class="text-center" width="35%">问题内容</th>
							<th class="text-center" width="10%">问题分类</th>
                            <th class="text-center" width="10%">提交时间</th>
                            <th class="text-center" width="10%">状态</th>
                            <th class="text-center" width="20%">操作</th>
                        </tr>
                    </thead>

                    <tbody>
                    <foreach name="list" item="v" key="k">
                        <tr>
                            <td class="clickable">{$v.tno}</td>
							<td class="clickable">{$v.desc}</td>
							<td class="clickable">{$v.typename}</td>
							<td class="clickable">{$v.addtime}</td>
							<td class="clickable">{$v.status|getTicketzt}</td>

                            <td class="clickable text-center">
                                <a href="{:U('Member/delete_ticket',array('id'=>$v['id']))}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');"><span class="label label-warning">删除 </span></a>
                                <span class="label label-info cursor" style="margin-left:5px;" onclick="window.location.href='{:U('Member/close_ticket',array('id'=>$v['id']))}'">关闭</span>
                                <span class="label label-info cursor" style="margin-left:5px;" onclick="window.location.href='{:U('Member/view_ticket',array('id'=>$v['id']))}'">查看</span>
                            </td>
                        </tr>
                    </foreach>   
                    </tbody>
                </table>
                </div>
            </div>
            </div>
        </div>
        <!--End Striped Rows-->
    </div>
    <div class="pager">{$page}
        </div>

</div><!--/container-->
<include file="Public/newset-footer" />